﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class AllNumbersFrom1toNNotDevBy3And7
{
    static void Main()
    {
        Console.Write("Enter N: ");
        int n = Convert.ToInt32(Console.ReadLine());
        int counter = 1;
        while (counter < n) 
        {
            if (((counter % 3) != 0) && ((counter % 5) != 0)) 
            {
                Console.Write(" {0}; ", counter);
                Console.Beep((counter+89), 200);
            }
            counter++;
        }
    }
}

